#include <stdio.h>
#include <stdlib.h>


typedef struct _alloc
{
	char name[32];
	int  type;
}alloc;


void main()
{
	alloc ac;
	alloc * pa;

	printf("sizeof(ac=%ld)\n", sizeof(ac));	// 36
	printf("sizeof(pa=%ld)\n", sizeof(pa));	// 8

	pa = (alloc *) malloc (sizeof(ac) * 10);
	printf("sizeof(pa=%ld)\n", sizeof(pa));		// 8
	free(pa);

	pa = (alloc *) malloc (sizeof(pa) * 10);
	printf("sizeof(pa=%ld)\n", sizeof(pa));		// 8
	free(pa);

}


